package com.neuedu.hw_20190215;

import java.awt.geom.Arc2D;
import java.util.Random;

public class StudentInformation {
    //成员变量

    Random random = new Random();
    //行为方法
    //随机产生分数
    public Double randomScore(){
        Double score=random.nextDouble()*100;
        return score;
    }
    //随机产生年龄
    public int randomAge(){
        int age = random.nextInt(20)+10;
        return age;
    }
    //随机产生学号后两位
    public int randomId(){
        int id = random.nextInt(90)+10;
        return id;
    }

}
